<template>
	<div id="personInfoCell">
		<van-cell-group>

            <van-cell center title="手机号"  :value="userInfo.phone" />
            <van-cell center title="姓名"  :value="userInfo.name?userInfo.name:'无'" />
            <van-cell center title="性别"  :value="userInfo.sex?userInfo.sex:'无'" />
            <van-cell center title="学校"  :value="userInfo.school?userInfo.school:'无'" />
            <van-cell center title="学院"  :value="userInfo.college?userInfo.college:'无'" />
            <van-cell center title="身份"  :value="userInfo.roles[0]" />
            <van-cell center title="学号/工号"  :value="userInfo.no?userInfo.no:'无'" />
		</van-cell-group>
        
	</div>
</template>

<script>
// import { sendRegisterCode } from '@/api/register.js';
// import { sendforgetPswCode } from '@/api/passwd.js';

export default {
	name: 'personInfoCell',
	data() {
		return {
			name: '',
            sex: '',
            school: '',
            college: '',
            no: '',
		}
	},
    created() {
        this.userInfo = JSON.parse(localStorage.getItem('userInfo'));
    },
	props: {
		
	},
	methods: {
        

				

				
				
			
	},
}

	
</script>

<style>
</style>